# Begin: Custom commands for outgoing e-mails BEFORE encryption log(1,'Begin: Custom commands for outgoing e-mails BEFORE encryption'); # Begin: Special processing for EDIFACT log(1,'Begin: Special processing for EDIFACT'); if (compare('from','match','$edifact_mailbox_regex')) { setvar('direction','outbound'); $EDIFACT_address_check; $EDIFACT_file_type_check; $EDIFACT_subject_check; $EDIFACT_sign; $EDIFACT_signature_subcheck; $EDIFACT_encrypt; $EDIFACT_encryption_subcheck; if(flag('drop',0)) { setvar('result','F A I L E D'); notify('$clearing_mailbox','EDIFACT_report_attachmail'); bounce('EDIFACT_report_attachmail'); } else { setvar('signature_result','OK'); setvar('encryption_result','OK'); setvar('result',' O K '); notify('$clearing_mailbox','EDIFACT_report'); deliver(); } } log(1,'End: Special processing for EDIFACT'); # End: Special processing for EDIFACT log(1,'End: Custom commands for outgoing e-mails BEFORE encryption'); # End: Custom commands for outgoing e-mails BEFORE encryption